<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>lwIP: ip_globals Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">lwIP
   &#160;<span id="projectnumber">2.1.2</span>
   </div>
   <div id="projectbrief">Lightweight IP stack</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structip__globals.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">ip_globals Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;ip.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a7803dc5950d143e4433a0df689989bab"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structnetif.html">netif</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#a7803dc5950d143e4433a0df689989bab">current_netif</a></td></tr>
<tr class="separator:a7803dc5950d143e4433a0df689989bab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7da899c663b1d560b61d92ba6d544701"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structnetif.html">netif</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#a7da899c663b1d560b61d92ba6d544701">current_input_netif</a></td></tr>
<tr class="separator:a7da899c663b1d560b61d92ba6d544701"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e810f97cf3e8e855e3baafc3be8c0d4"><td class="memItemLeft" align="right" valign="top">const struct ip_hdr *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#a2e810f97cf3e8e855e3baafc3be8c0d4">current_ip4_header</a></td></tr>
<tr class="separator:a2e810f97cf3e8e855e3baafc3be8c0d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5cfc3ac29dc746a4cbe844206b0ed41"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structip6__hdr.html">ip6_hdr</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#aa5cfc3ac29dc746a4cbe844206b0ed41">current_ip6_header</a></td></tr>
<tr class="separator:aa5cfc3ac29dc746a4cbe844206b0ed41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17004526e6f1a164c0bab01aeac5e34a"><td class="memItemLeft" align="right" valign="top">u16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#a17004526e6f1a164c0bab01aeac5e34a">current_ip_header_tot_len</a></td></tr>
<tr class="separator:a17004526e6f1a164c0bab01aeac5e34a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04d85a3dc2c417050b3e088fa58a74b0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ipaddr.html#ga16ef96d6cde029029bbf47fee35fd67a">ip_addr_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#a04d85a3dc2c417050b3e088fa58a74b0">current_iphdr_src</a></td></tr>
<tr class="separator:a04d85a3dc2c417050b3e088fa58a74b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b4e54250c692c638408de54593d2aa1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ipaddr.html#ga16ef96d6cde029029bbf47fee35fd67a">ip_addr_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structip__globals.html#a0b4e54250c692c638408de54593d2aa1">current_iphdr_dest</a></td></tr>
<tr class="separator:a0b4e54250c692c638408de54593d2aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Global variables of this module, kept in a struct for efficient access using base+index. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a7da899c663b1d560b61d92ba6d544701"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7da899c663b1d560b61d92ba6d544701">&#9670;&nbsp;</a></span>current_input_netif</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structnetif.html">netif</a>* ip_globals::current_input_netif</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The interface that received the packet for the current callback invocation. </p>

</div>
</div>
<a id="a2e810f97cf3e8e855e3baafc3be8c0d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e810f97cf3e8e855e3baafc3be8c0d4">&#9670;&nbsp;</a></span>current_ip4_header</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const struct ip_hdr* ip_globals::current_ip4_header</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Header of the input packet currently being processed. </p>

</div>
</div>
<a id="aa5cfc3ac29dc746a4cbe844206b0ed41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5cfc3ac29dc746a4cbe844206b0ed41">&#9670;&nbsp;</a></span>current_ip6_header</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structip6__hdr.html">ip6_hdr</a>* ip_globals::current_ip6_header</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Header of the input IPv6 packet currently being processed. </p>

</div>
</div>
<a id="a17004526e6f1a164c0bab01aeac5e34a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17004526e6f1a164c0bab01aeac5e34a">&#9670;&nbsp;</a></span>current_ip_header_tot_len</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u16_t ip_globals::current_ip_header_tot_len</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Total header length of current_ip4/6_header (i.e. after this, the UDP/TCP header starts) </p>

</div>
</div>
<a id="a0b4e54250c692c638408de54593d2aa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b4e54250c692c638408de54593d2aa1">&#9670;&nbsp;</a></span>current_iphdr_dest</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ipaddr.html#ga16ef96d6cde029029bbf47fee35fd67a">ip_addr_t</a> ip_globals::current_iphdr_dest</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destination IP address of current_header </p>

</div>
</div>
<a id="a04d85a3dc2c417050b3e088fa58a74b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04d85a3dc2c417050b3e088fa58a74b0">&#9670;&nbsp;</a></span>current_iphdr_src</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ipaddr.html#ga16ef96d6cde029029bbf47fee35fd67a">ip_addr_t</a> ip_globals::current_iphdr_src</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Source IP address of current_header </p>

</div>
</div>
<a id="a7803dc5950d143e4433a0df689989bab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7803dc5950d143e4433a0df689989bab">&#9670;&nbsp;</a></span>current_netif</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structnetif.html">netif</a>* ip_globals::current_netif</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The interface that accepted the packet for the current callback invocation. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/include/lwip/<a class="el" href="ip_8h.html">ip.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structip__globals.html">ip_globals</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
